package br.com.controller.filtros;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import br.com.controller.Login;
import br.com.model.Permissao;

/**
 * Servlet Filter implementation class FiltroProfessor
 */
@WebFilter("/view/professor/*")
public class FiltroProfessor extends Filtro {

	@Override
	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {

request.setAttribute("permissaoRequerida", Permissao.PROFESSOR);
		
		super.doFilter(request, response, chain);
		
	}

}

